import requests
import json

class Login:
	def login(self):
		url=''
		data={}
		headers={}
		r=requests.post(url,json=data,headers=headers)
		with open('cookie','w') as f:
			f.write(r.cookies['session'])
	def get_token(self):
		with open('cookie','r') as f:
			return f.read()




def get_token():
	url = ''
	data = {
	}
	header = {"Accept": "*/*"}
	res = requests.post(url, json=data, headers=header)
	t = json.loads(res.text).get('data').get('link')
	token = t.split('=')[1]
	return token


tp = get_token()
print(tp)